import http from "@/utils/http.ts";
import {Weather} from "@/api/area.ts";
import {R} from "@/api/common.ts";

interface WeatherData {
    id: number;
    type: number;
}

export function getWeather(data: WeatherData) {
    return http<R<Weather>>({
        url: "weather",
        method: "post",
        data
    })
}